#pragma once

class CServerTreeView : public CTreeView
{
public:
	CServerTreeView(void);
	DECLARE_DYNCREATE(CServerTreeView)

	~CServerTreeView(void);

	virtual void OnInitialUpdate();

protected:
	virtual void OnDraw(CDC* pDC);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

public:
	void OnNewClientIn(CUserInfo wParam,LPARAM lParam);
	void OnClientOut(CUserInfo wParam, LPARAM lParam);

	CTreeCtrl & userListTree;
	CImageList imageList;

protected:
	HTREEITEM m_ParentItem;
	//{{AFX_MSG(CMyTreeView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
